<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="juheOrderRefundForm">
                        <input type="hidden" th:value="${juheOrderRefund.id}" id="id" name="id">
                        <table class="table table-bordered table-condensed">
                            <tbody>
                            <tr>
                                <th class="required" style="text-align: right;">聚合支付订单编号</th>
                                <td th:text="${juheOrderRefund.outTradeNo}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">聚合支付订单退款编号</th>
                                <td th:text="${juheOrderRefund.refundNo}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">用户退款说明</th>
                                <td th:text="${juheOrderRefund.reason}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">用户退款相关图片</th>
                                <td><img th:src="@{${juheOrderRefund.images}}"/></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">退款人</th>
                                <td th:text="${juheOrderRefund.aname}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">退款金额</th>
                                <td th:text="${juheOrderRefund.applyPrice}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">申请时间</th>
                                <td th:text="${#dates.format(juheOrderRefund.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">退款状态</th>
                                <td>
                                    <label class="radio-inline"><input th:field="*{juheOrderRefund.status}" type="radio"
                                                                       name="gender" value="0" disabled/>申请中</label>
                                    <label class="radio-inline"><input th:field="*{juheOrderRefund.status}" type="radio"
                                                                       name="gender" value="1" disabled/>已通过</label>
                                    <label class="radio-inline"><input th:field="*{juheOrderRefund.status}" type="radio"
                                                                       name="gender" value="2" disabled/>已拒绝</label>
                                </td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">拒绝原因</th>
                                <td th:text="${juheOrderRefund.content}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">退款操作人</th>
                                <td th:text="${juheOrderRefund.refundName}"></td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <div th:if="${juheOrderRefund.status} == 0" class="btn btn-success" onclick="edit()"><i
                                        class="fa fa-remove"></i> 通过
                                </div>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                                <div th:if="${juheOrderRefund.status} == 0" class="btn btn-danger" onclick="refuse()"><i
                                        class="fa fa-remove"></i> 拒绝
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:include="centre/manage/include::footer"></div>
<script type="text/javascript" src="/js/appjs/order/juheOrderRefundInfo.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
</body>
</html>
